package com.baic.ibase.models.req.devices;


import com.alibaba.fastjson2.JSONObject;
import com.baic.ibase.models.req.common.TraceRequest;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
public class ExecuteCommandReq extends TraceRequest implements Serializable {


    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空!")
    private String deviceId;

    /**
     * 发送指令，枚举类型
     */
    @NotNull(message = "命令不能为空!")
    private CommandType command;

    /**
     * 指令参数
     */
    private JSONObject commandParam;

    private Long userId;

}
